import sqlite3 as sqlite


class Indexer(object):
    def __init__(self, dbconn, codepoints):
        self.dbconn = dbconn
        self.codepoints = codepoints
    
    @classmethod
    def load(cls, basefilename):
        conn = sqlite.connect(basefilename + "-index")
        codepoints = CodePoints.load(basefilename + "-codepoints")
        return cls(conn, codepoints)
    
    def index(self, node):
        pass
    








